package webapp.mvc.controllers.forms;

import com.zoowii.formutils.annotations.Length;

import javax.validation.constraints.NotNull;

public class RegisterForm {
    @NotNull
    @Length(max = 50)
    private String username;
    @NotNull
    @Length(max = 50)
    private String password;
    private String nick;
    private boolean isShopOwner = false;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public boolean isShopOwner() {
        return isShopOwner;
    }

    public void setIsShopOwner(boolean isShopOwner) {
        this.isShopOwner = isShopOwner;
    }

    public String getNick() {
        return nick;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }
}
